class Semester < ActiveRecord::Base
	has_many :courses

	# Validation for Semesters
	# --------------------------------

	validates_uniqueness_of 	:term, 			:scope => :term	
	validates_format_of 		:term, 			:with => /^(Fall|Spring|Summer|Winter)\d{4}$/,	:message => "is not valid, it must be {Fall, Spring, Summer, or Winter} followed by four (4) numbers. ex: Fall2010"

end
